import 'package:taonile/generated/json/base/json_field.dart';
import 'package:taonile/generated/json/refund_reason_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class RefundReasonEntity {

	late int code=0;
	late String msg;
	late List<RefundReasonData> data=[];
  
  RefundReasonEntity();

  factory RefundReasonEntity.fromJson(Map<String, dynamic> json) => $RefundReasonEntityFromJson(json);

  Map<String, dynamic> toJson() => $RefundReasonEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class RefundReasonData {

	late int id;
	late String title;
  
  RefundReasonData();

  factory RefundReasonData.fromJson(Map<String, dynamic> json) => $RefundReasonDataFromJson(json);

  Map<String, dynamic> toJson() => $RefundReasonDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}